package construction.compositon;

public class Test {
    public static void main(String[] args) {
        University university = new University("清华大学","一流大学");

        College computerCollege = new College("计算机学院","计算机学院des");
        computerCollege.add(new Department("计算机科学与技术","计算机科学与技术des"));
        computerCollege.add(new Department("软件工程","软件工程des"));

        College informationCollege = new College("信息学院","信息学院des");
        informationCollege.add(new Department("通信专业","通信专业des"));
        informationCollege.add(new Department("传输专业","传输专业des"));

        university.add(computerCollege);
        university.add(informationCollege);

        university.print();
        /*
        -------University--------
        -------College--------
        name='计算机科学与技术', des='计算机科学与技术des'}
        name='软件工程', des='软件工程des'}
        -------College--------
        name='通信专业', des='通信专业des'}
        name='传输专业', des='传输专业des'}
*/

//        computerCollege.print();
//        informationCollege.print();

    }
}
